package com.nsgf.library.data.bean;

import java.text.DecimalFormat;
import java.util.List;

public class Category {
    private String id;
    private String name;
    private String icon;
    private List<Category> list;
    private String title;
    private double marketPrice;
    private double price;
    private String picUrl;

    public Category(String id, String name, String icon) {
        this.id = id;
        this.name = name;
        this.icon = icon;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMarketPrice() {
        DecimalFormat df = new DecimalFormat("#####0.00");
        return "¥"+df.format(marketPrice/100);
    }

    public void setMarketPrice(double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public String getPrice() {
        DecimalFormat df = new DecimalFormat("#####0.00");
        return df.format(price/100);
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public List<Category> getList() {
        return list;
    }

    public void setList(List<Category> list) {
        this.list = list;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
}